home *** CD-ROM | disk | FTP | other *** search
/ Precision Software Appli…tions Silver Collection 1 / Precision Software Applications Silver Collection Volume One (PSM) (1993).iso / children / presdent.exe / P_INSTAL.BAT < prev    next >
DOS Batch File  |  1991-11-23  |  6KB  |  149 lines

  1. echo off
  2. cls
  3. echo.
  4. echo  P_INSTAL.BAT for The Presidents A & B
  5. echo.
  6. echo  Amended by P.S.A. to ensure it works correctly 
  7. cls
  8. if x%1==x goto di-rections
  9. if x%2==x goto di-rections
  10. if not exist %1PRES_B.EXE goto error
  11. if not exist %1PRES_A.EXE goto error
  12. if not exist %1P_README.1ST goto error
  13. if %2==a: goto small-disk
  14. if %2==A: goto small-disk
  15. if %2==b: goto small-disk
  16. if %2==B: goto small-disk
  17. goto big-disk
  18. rem Display Install help if drive data are wrong
  19. :di-rections
  20. echo   ╒════════════════════════╗       ╔════════════════════════════════════╕
  21. echo   │ Installation Procedure ║       ║ Syntax: P_INSTAL drive1  drive2    │
  22. echo   ├────────────────────────╨───────╨────────────────────────────────────┤
  23. echo   │ The Install procedure must be from one drive to another.            │
  24. echo   │ The distribution disk must be placed in drive1.  The Install        │
  25. echo   │ program will expand the files to drive2.                            │
  26. echo   ╞═════════════════════════════════════════════════════════════════════╡
  27. echo   │ If you use a Dual Floppy 360k system you will need to prepare two   │
  28. echo   │ formatted diskettes.  Label one of the disks PRESIDENT A and the 2nd│
  29. echo   │ PRESIDENT B.  When ready place the distribution disk in drive A:    │
  30. echo   │ type ....  P_INSTAL A: B:  or from B:  P_INSTAL B: A:               │
  31. ECHO   ╞═════════════════════════════════════════════════════════════════════╡
  32. echo   │ For a Hard Disk or a 720k+ system you will require at least 700K.   │
  33. echo   │ A \PRES subdirectory will be created on a HD.  When ready place the │
  34. echo   │ distrution disk in drive A: (or B:) and type "from" - "to":         │
  35. echo   │    P_INSTAL A: C: (program material from A: to hard disk C:)  or    │
  36. echo   │    P_INSTAL B: C: (program material from B: to hard disk C:)  or    │
  37. echo   │    P_STALL B: A: (program material from B: to  720K+ disk A:).      │
  38. echo   ╞═════════════════════════════════════════════════════════════════════╡
  39. echo   │ NOTE:  The INSTALL batch file will supply supplemental instructions.│
  40. echo   ╘═════════════════════════════════════════════════════════════════════╛
  41. pause
  42. cls
  43. goto exit_bat
  44. rem *** routine for hard disk installation procedure ***
  45. :big-disk
  46. cls
  47. echo   ╒══════════════════════════════════════════════════════════╕
  48. echo   │ You have chosen to install the President files           │
  49. echo   │ from drive "%1" to drive "%2" fixed disk.                │
  50. echo   ├──────────────────────────────────────────────────────────┤
  51. echo   │ Remember, the Destination drive %2 must have 700K free.  │
  52. echo   ├──────────────────────────────────────────────────────────┤
  53. echo   │ If you wish to change your mind press "CTRL+BREAK" now.  │
  54. echo   ├──────────────────────────────────────────────────────────┤
  55. echo   │ Otherwise ....                                           │
  56. echo   ╘══════════════════════════════════════════════════════════╛
  57. echo:
  58. pause
  59. %2
  60. cls
  61. echo      ┌──────────────────────────────────────┐
  62. echo      │   Creating \PRES directory on "%2".  │
  63. echo      └──────────────────────────────────────┘
  64. cd \
  65. md PRES
  66. cd \PRES
  67. echo      ┌────────────────────────────────────────┐
  68. echo      │   Extracting files .................   │
  69. echo      │   This may take a few moments....      │
  70. echo      └────────────────────────────────────────┘
  71. COPY %1P_README.1st %2
  72. %1PRES_A
  73. %1PRES_B
  74. dir /w %2
  75. pause
  76. %1
  77. goto done
  78. rem
  79. rem *** Installation procedure for 360K - 720k+ diskette ***
  80. rem
  81. :small-disk
  82. cls
  83. echo  ╔══════════╦═════════════════════════════════════════════════════════╗
  84. echo  ║  FLOPPY  ║   You have chosen to install the files from             ║
  85. echo  ║  INSTALL ║  Drive %1 to a 360K or 720k+ disk on Drive %2.          ║
  86. echo  ╠══════════╩═════════════════════════════════════════════════════════╣
  87. echo  ║  Remember - you should have diskettes formatted and prepared       ║
  88. echo  ║  labeled PRES_A (& PRES_B).  Press CTRL+BREAK if not ready, else...║
  89. echo  ╠════════════════════════════════════════════════════════════════════╣
  90. echo  ║  Put distribution disk in drive %1 & Disk PRES_A in Drive %2 and ..║
  91. echo  ╚════════════════════════════════════════════════════════════════════╝
  92. echo:
  93. pause
  94. cls
  95. echo   ┌────────────────────────────────────────┐
  96. echo   │ Extracting QUIZPRES & TEST files ....  │
  97. echo   │ This may take a few moments .........  │
  98. echo   └────────────────────────────────────────┘
  99. %2
  100. COPY %1P_README.1ST %2
  101. %1pres_A
  102. dir /w %2
  103. pause
  104. cls
  105. echo  ╔═══════════════════════════════════════════════════════════════╗
  106. echo  ║  If a 360k disk:  Remove PRES_A disk from drive %2            ║
  107. echo  ║                   Replace it with the PRES_B disk,  or  ...   ║
  108. echo  ║===============================================================║
  109. echo  ║  If a 720k+ disk: No need to remove the disk. Just .........  ║
  110. echo  ╚═══════════════════════════════════════════════════════════════╝
  111. echo:
  112. pause
  113. echo   ┌────────────────────────────────────────┐
  114. echo   │ Extracting BIOGRAPHY files ..........  │
  115. echo   │ This may take a few moments .........  │
  116. echo   └────────────────────────────────────────┘
  117. %1PRES_B
  118. dir /w %2
  119. pause
  120. :done
  121. cls
  122. echo      ┌─────────────────────────────────────────────────────────┐
  123. echo      │ BRAVO ... The installation procedure has been complete! │
  124. echo      └─────────────────────────────────────────────────────────┘
  125. echo:
  126. echo:
  127. echo   ╔═════════════════════════════╤═════════════════════════════════╗
  128. echo   ║ The document may be printed.│          : PRINT PRES.DOC       ║
  129. echo   ║ or listed to the screen.....│by typing : TYPE  PRES.DOC       ║
  130. echo   ░ --------------------------------------------------------------░
  131. echo   ║ The programs may be run.....│by typing : QUIZPRES             ║
  132. ECHO   ║ OR .........................│          : READPRES             ║
  133. echo   ╚═════════════════════════════╧═════════════════════════════════╝
  134. GOTO EXIT_BAT
  135. :ERROR
  136. CLS
  137. echo 
  138. echo 
  139. echo d
  140. echo:
  141. echo       ************************************************************
  142. ECHO       * We have not found the correct files on drive %1. Please  *
  143. echo       * place the distribution disk in drive %1 and start over.  *
  144. echo       ************************************************************
  145. echo 
  146. pause
  147. :exit_bat
  148. go
  149.